home *** CD-ROM | disk | FTP | other *** search
- Path: feed.umontreal.ca!derby!not-for-mail
- From: duprec@JSP.UMontreal.CA (DUPRE Christophe)
- Newsgroups: comp.lang.c
- Subject: Re: Are these assumptions about libraries and headers correct ?
- Date: 30 Mar 1996 20:42:24 GMT
- Organization: Universite de Montreal
- Distribution: world
- Message-ID: <4jk6bg$qi6@epervier.CC.UMontreal.CA>
- References: <4jhjqe$l7u@sue.cc.uregina.ca>
- NNTP-Posting-Host: derby.jsp.umontreal.ca
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Shayne G. Wright (wright@HERCULES.CS.UREGINA.CA) wrote:
- : Hi
- :
- : I am trying to compile procps-0.99 and encounter
- : this message :
- :
- : /usr/X11R6/lib/libXt.so: undefined reference to `XkbLookupKeySym'
- :
- : I guess my assumption is, does the problem have
- : anything to do with the header files in /usr/X11R6/include/X11/
- : Or specifically a missing Xt/ subdirectory and/or a missing
- : XkbLookupKeySym.h file. This is new to me, so please correct
- : me if I am wrong.
-
- I don't think that's the case... I think it looks more like a linking
- problem. As far as I know, there's no "Xt/" directory in
- /usr/X11R6/include/X11.
-
- When you linked, did you add the option "-L/usr/X11R6/lib" ?? this path
- may not be in the lib search path.
- Another possibility in the lack of the link option "-lX11", as Xt needs
- the lib X11 as well...
-
-
- : Secondly, what is the difference between lib*.a,
- : lib*.sa, and lib*.so.* files ?
-
- .a means a static library : objects are extracted at compile time and
- linked with the binary.
- .so means a shared library : objects are extracted and linked at
- execution time, thus reducing the binary file size.
- Both of these types of file can be a.out or ELF.
- .sa is a.out only, and are the stubs for shared library : This permits
- the linker to know where will be the shared libraries at run time.
-
-
- : krusty[procps-0.99a]=2=>>file libXt.*
- : libXt.a: current ar archive
- : libXt.so: symbolic link to libXt.so.6
- : libXt.so.6: symbolic link to libXt.so.6.0
- : libXt.so.6.0: ELF 32-bit LSB dynamic lib i386 (386 and up) Version 1
- :
- : Permissions are set (for the parent directories as well) :
- :
- : krusty[procps-0.99a]=3=>>ls -al libXt.*
- : -rw-r--r-- 356750 Feb 28 00:34 libXt.a
- : lrwxrwxrwx 12 Mar 23 00:21 libXt.so -> libXt.so.6
- : lrwxrwxrwx 12 Mar 23 00:21 libXt.so.6 -> libXt.so.6.0*
- : -rwxr-xr-x 308539 Feb 28 00:34 libXt.so.6.0*
- :
- : And for further verification :
- :
- : krusty[lib]=2=>>nm libXt.so |grep XkbLookupKeySym
- : U XkbLookupKeySym
- : krusty[lib]=3=>>nm libXt.a | grep XkbLookupKeySym
- : U XkbLookupKeySym
-
- All the information seems OK for me...
-
- --
- Christophe Dupre Universite de Montreal
- Internet: duprec@jsp.umontreal.ca Qc, Canada
- Montreal, Qc, Canada
- "Nous ne sommes pas libres de ne pas etre libres, nous sommes obliges de
- l'etre" - Fernando Savater
-
- -- Geek Code 2.1 --
- GCS d-- H+ s:++ g+ !p au-* a19 w+ v+ C++(+++) UIL++>+++ P+>++ L++
- 3- E---- N++ K W- M- V-- Y+ t++ 5++ !j R+ G- tv b++
- D+ e+ u** h->++ f+ r++ n---(----) y+
-
- #include <disclaimer.h>
-
-